package com.smt.ejb3.tutoria.service;

import com.smt.ejb3.tutoria.entitybean.jointable.Buyer;
import com.smt.ejb3.tutoria.entitybean.jointable.User;
import com.smt.ejb3.tutoria.entitybean.many2many.Role;
import com.smt.ejb3.tutoria.entitybean.many2many.Staff;
import com.smt.ejb3.tutoria.entitybean.many2one.Employee;
import com.smt.ejb3.tutoria.entitybean.many2one.bidirection.Company2;
import com.smt.ejb3.tutoria.entitybean.one2one.fk.Customer1;
import com.smt.ejb3.tutoria.entitybean.one2one.fk.CustomerNo1;
import com.smt.ejb3.tutoria.entitybean.one2one.pk.Customer;
import com.smt.ejb3.tutoria.entitybean.one2one.pk.CustomerNo;
import com.smt.ejb3.tutoria.entitybean.singletable.Animal;
import com.smt.ejb3.tutoria.entitybean.tableperclass.Meat;

public interface MappingService {
	public Employee saveEmployee(Employee emp);
	public void testSave();
	public Company2 saveCompany2(Company2 com);
	public Company2 findCompany2(int id);
	public Customer saveCustomer(Customer cus);
	public Customer findCustomer(int id);
	public CustomerNo findCustomerNo(int id);
	public Customer1 saveCustomer1(Customer1 cus);
	public Customer1 findCustomer1(int id);
	public CustomerNo1 findCustomerNo1(int id);
	public Role saveRole(Role role);
	public Role findRole(int id);
	public Staff saveStaff(Staff staff);
	public Staff findStaff(String name);
	public Animal saveAnimal(Animal animal);
	public User saveUser(User user);
	public Buyer findBuyer(int id);
	public User findUser(int id);
	public Meat saveMeat(Meat meat);
	public Meat findMeat(int id);
}
